package com.scuec.groupfive.service;

import com.scuec.groupfive.entity.DailyTask;
import java.util.List;
import java.util.Map;

public interface DailyTaskService_eight {
    List<DailyTask> getListTasks();
    int updateTaskStatus(DailyTask dailyTask);
    int addDailyTask(DailyTask dailyTask);

    // 修改参数名：task_id -> taskId, user_id -> userId
    int deleteDailyTask(Long taskId, Long userId);

    List<DailyTask> getTasksByUsername(String username);

    List<DailyTask> getTasksByUsernameAndDate(String username, String date);

    Map<String, Object> getTaskStatisticsByUsername(String username);

    /**
     * 批量插入task_questions
     */
    void addTaskQuestionsBatch(Long taskId, Long questionId, Integer questionsCount);
}